package com.xmcc.controller;

import com.xmcc.common.ResultJson;

import com.xmcc.service.SysCoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;



@RequestMapping("sys/core")
@Controller
public class SysCoreController {
    @Autowired
    private SysCoreService sysCoreService;
    @RequestMapping("coreTree.json")
    public @ResponseBody  ResultJson coreTree(Integer roleId){
        return ResultJson.success(sysCoreService.coreTree(roleId));
    }

}
